# def get_sum(*arges):
#     sum1=0
#     for i in arges:
#         sum1+=i
#     return sum1
#
# if __name__ == '__main__':
#     get_sum(1,2,3)
#     print(get_sum(1, 2, 3))

# s1='刘亦菲'
# s2='胡歌'
# list1=([s1]+[s2])
# print(list1)
#
# s1=list1[0]
# s2=list1[1]
# print(s1,s2)

# a=10
# b=20
# b,a=a,b
# print(f'a={a},b={b}')
#
# def get_sum(*arges):
#     sum1=0
#     for i in arges:
#         sum1+=i
#     return sum1

# def my_func(a,b,func):
#     return func(a,b)
#
# print(my_func(3,5,lambda a,b:a+b))
# print(my_func(3,5,lambda a,b:a-b))
# print(my_func(3,5,lambda a,b:a*b))
# print(my_func(3,5,lambda a,b:a/b))
# print(my_func(3,5,lambda a,b:max(a,b)))
# print(my_func(3,5,lambda a,b:min(a,b)))
# print(my_func(3,5,lambda a,b:a if a>b else b))
# print(my_func(3,5,lambda a,b:a if a<b else b))

from pathlib import Path
# from datetime import datetime
# for i in Path('D:/').rglob('*.png'):
#     print(i)
# for i in Path('D:/').rglob('*.txt'):
#     print(datetime.fromtimestamp(i.stat().st_ctime))

# for item in Path.cwd().glob('*/demo*.py'):
#     print(item)

Path('人工智能').mkdir(exist_ok=True)
# Path('file/人工智能/my.txt')

# Path('file/人工智能/my.txt').rename('file/人工智能/you.txt')

# Path('file/人工智能/my.txt').unlink()
